﻿using Medianamik.UI.Web.MVP.View;

namespace Medianamik.UI.Web.Shop
{
    public interface IProductTypeListView : IModuleViewWithNodeTypeGrid { }

    public partial class ShopProductTypeList : ModuleViewWithNodeTypeGrid<IProductTypeListView>, IProductTypeListView
    {
        public override System.Web.UI.WebControls.HyperLink AddButton
        {
            get
            {
                return lnkAddNode;
            }
        }

        public override string TypeSelectorUrl
        {
            get
            {
                return EditPageUrl;
            }
        }

        public override string ListingPageUrl
        {
            get { return Pages.ProductTypeList; }
        }

        public override IMedianamikGrid Grid
        {
            get { return (IMedianamikGrid)ProductTypeGrid; }
        }

        public override string EditPageUrl
        {
            get
            {
                return Pages.ProductTypeEdit;
            }
        }

        public override string ChildrenListingPageUrl
        {
            get
            {
                return ListingPageUrl;
            }
        }

        public override string AttributesPageUrl
        {
            get
            {
                return Pages.AttributeList;
            }
        }
    }
}